package com.yonyougov.devops.cruxcisupport.version.dto;

import com.yonyougov.devops.fwc.api.dto.BasePageRequestDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.math.BigInteger;

@Setter
@Getter
@ToString
@ApiModel("分页查询版本，也支持根据版本名称查询")
public class FindVersionByAppIdRequestDto extends BasePageRequestDto {

    @ApiModelProperty(value = "Id")
    private BigInteger id;
    @NotNull
    @ApiModelProperty(value = "版本Id")
    private BigInteger appId;

    @ApiModelProperty(value = "版本状态")
    private BigInteger status;

    @ApiModelProperty(value = "版本名称")
    private String versionName;

    @ApiModelProperty(required = true, name = "下载地址")
    private String url;
}
